package com.bee.common.core.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <pre>表单元素类型枚举</pre>
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum FormElementEnum {

    title("MENU","标题"),
    hr("BUTTON","按钮"),
    p("p","按钮"),
    input("input","输入框"),
    select("select","下拉框"),
    radio("radio","单选框"),
    checkbox("checkbox","复选框"),
    datepicker("datepicker","日期组件"),
    cascader("cascader","级联组件"),
    address("address","地址组件"),
    uploads("uploads","上传组件"),
    text("text","文本组件"),
    tinymce("tinymce","富文本组件");

    private String code;
    private String name;

    FormElementEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
